package com.liu.text;

import com.liu.mapper.UserMapper;
import com.liu.proxyDemo.User;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

public class SpringTextTwo {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext(" Application-Config.xml");
        UserMapper userMapper = applicationContext.getBean("UserMapperImplTwo", UserMapper.class);
        List<User> users = userMapper.selectUser();
        for (int i = 0; i < users.size(); i++) {
            System.out.println(users.get(i));
        }
    }
}
